package com.huike.web.controller.business;

import com.huike.business.domain.TbBusinessTrackRecord;
import com.huike.business.service.ITbBusinessTrackRecordService;
import com.huike.common.core.domain.AjaxResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.huike.common.core.controller.BaseController;

import java.util.List;

/**
 * 商机跟进记录Controller
 * @date 2021-04-28
 */
@RestController
@RequestMapping("/business/record")
public class TbBusinessTrackRecordController extends BaseController {
    @Autowired
    private ITbBusinessTrackRecordService iTbBusinessTrackRecordService;

    /**
     * 商机跟进记录列表
     * @param businessId
     * @return
     */
    @GetMapping(value = "/list")
    public AjaxResult selectTbBusinessTrackRecordList(Long businessId){
        TbBusinessTrackRecord tbBusinessTrackRecord = new TbBusinessTrackRecord();
        List<TbBusinessTrackRecord> tbBusinessTrackRecords = iTbBusinessTrackRecordService.selectTbBusinessTrackRecordList(tbBusinessTrackRecord);
        return AjaxResult.success(tbBusinessTrackRecords);
    }

}
